from func.gobal.data import LLmData
from func.log.default_log import DefaultLog
from openai import OpenAI, Stream

class OpenAiApi:
    log = DefaultLog().getLogger()
    llmData= LLmData()

    def __init__(self,api_key,base_url):
        self.client = OpenAI(api_key=api_key, base_url=base_url)

